package model

import (
	"time"
)

// ServiceTime represents the service_times table
type ServiceTime struct {
	BaseModel
	ServiceID int64
	Date      time.Time `gorm:"column:date;NOT NULL"`      // 使用 time.Time 类型映射 DATE
	Time      time.Time `gorm:"column:time;NOT NULL"`      // 使用 time.Time 类型映射 TIME
	Available bool      `gorm:"column:available;NOT NULL"` // 使用 bool 类型映射 BOOLEAN
}

// TableName sets the insert table name for this struct type
func (s *ServiceTime) TableName() string {
	return "service_times"
}
